package com.tjec.project.projectLeaderWorkbeanch.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.tjec.framework.web.domain.AjaxResult;
import com.tjec.project.projectLeaderWorkbeanch.domain.BmsMdExpertType;
import com.tjec.project.projectLeaderWorkbeanch.service.IBmsMdExpertTypeService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 专家专业类别Controller
 * 
 * @author pangyognfeng
 * @date 2020-05-08
 */
@Api(value = "专家专业类别" , tags = {"基础数据-专家专业类别接口"})
@RestController
@RequestMapping("/expertType/professionCategory")
public class BmsMdExpertTypeController {
	
	@Autowired
	private IBmsMdExpertTypeService bmsMdExpertTypeService; 
	
    /**
     * 获取专家专业类别下拉树列表
     */
    @GetMapping("/treeselect")
    @ApiOperation("专家专业类别树")
    public AjaxResult treeselect(BmsMdExpertType bmsMdExpertType) {
        //bmsMdExpertType.setType("2");
        List<BmsMdExpertType> bmsMdExpertTypes = bmsMdExpertTypeService.selectBmsMdExpertTypeList(bmsMdExpertType);
        return AjaxResult.success(bmsMdExpertTypeService.buildExpertTypeTreeSelect(bmsMdExpertTypes));
    }

}
